package com.java.study.boot;

import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.cloud.gateway.discovery.DiscoveryClientRouteDefinitionLocator;
import org.springframework.cloud.gateway.discovery.DiscoveryLocatorProperties;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Configuration
@AutoConfigureBefore(DiscoveryClientRouteDefinitionLocator.class)
public class ConfigMi {

    DiscoveryLocatorProperties discoveryLocatorProperties;

    public ConfigMi(DiscoveryLocatorProperties discoveryLocatorProperties) {
        this.discoveryLocatorProperties = discoveryLocatorProperties;
    }

    @PostConstruct
    public void init() {
//        discoveryLocatorProperties.getFilters().add()
//        System.out.println("");
    }

}
